package com.maple.soa.controller;

import com.maple.soa.proxy.RentProxy;
import com.maple.soa.service.RentService;
import com.maple.soa.service.impl.RentServiceImpl;

/**
 * @author lijian
 * @date 2020/7/6
 */
public class RentController {
    public static void main(String[] args) {
        RentService rentService = new RentServiceImpl();
        rentService.rent();

        RentProxy proxy = new RentProxy();
        proxy.setRentName("张三");
        proxy.setRentService(rentService);
        proxy.rent();
    }
}
